package com.zr.daoimpl;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.ShowRolesDao;
import com.zr.model.Cquestion;
import com.zr.model.Crole;

@Repository("showRolesDao")
public class ShowRolesDaoImpl<T> extends BaseDaoImpl<T> implements ShowRolesDao<T>{

	@Override
	public List<Crole> getAllRoles() {
		List<Crole> rs = new ArrayList<Crole>();
		String hql = "from Crole";
		Query que = this.getCurrentSession().createQuery(hql);
		rs=que.list();
		return rs;
		
	}

}
